package ca.esdot.ane.intent.functions;

import com.adobe.fre.FREContext;
import com.adobe.fre.FREFunction;
import com.adobe.fre.FREObject;
import com.adobe.fre.FREWrongThreadException;
import ca.esdot.ane.intent.IntentContext;

public class IsSupportedFunction implements FREFunction {

	IntentContext context;
	
	@Override
	public FREObject call(FREContext context, FREObject[] params) {
		this.context = (IntentContext) context;
		
		FREObject result = null;
		try {
			result = FREObject.newObject(this.context.initComplete);
		} catch(FREWrongThreadException e){
			e.printStackTrace();
		}
		
		return result;
	}

}
